Using a Python dict for a SQL INSERT statement

70

sql = "INSERT INTO %s (%s) VALUES(%s)" % (
    table, ",".join(cols), ",".join(vals))

Comments

Submit
0 Comments